<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改地址</title>
<link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.css"
	rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath()%>/css/city-picker.css"
	rel="stylesheet" type="text/css" />
<style type="text/css">
#tx {
	width: 240px;
}

#btn2 {
	width: 80px;
	height: 30px;
	border-radius: 4px;
}

#btn3 {
	margin-right: 10px;
}

table tr td {
	font-size: 14px;
}
</style>
</head>

<body>
	<jsp:include page="nsearch.jsp"></jsp:include>
	<div id="div4">
		<form action="<%=request.getContextPath()%>/user/addressAlter"
			method="post">
			<table align="center" height="280px">
				<h3 align="center">收货地址信息</h3>
				<tr>
					<td><input type="hidden" name="_method" value="PUT"></td>
				</tr>
				<tr>
					<td><input type="hidden" name="id" value="${address.id }" /></td>
				</tr>
				<tr>
					<td>地址信息：</td>
					<td>
						<div id="distpicker">
							<div class="form-group">
								<div style="position: relative;">
									<input id="city-picker3" class="form-control" readonly
										type="text" name="base" value="江苏省/常州市/溧阳市"
										data-toggle="city-picker">
								</div>
							</div>
						</div>
					</td>
				</tr>
				<tr>
					<td>详细信息：</td>
					<td><textarea rows="3" cols="33" id="tx" required autofocus
							name="place">${address.place }</textarea></td>
				</tr>
				<tr>
					<td>收货人：</td>
					<td><input type="text" id="tx" maxlength="5"
						placeholder="请输入收货人姓名" required autofocus name="name"
						value="${address.name }" /></td>
				</tr>
				<tr>
					<td>手机号码：</td>
					<td><input type="text" pattern="1[345789]\d{9}$" id="tx"
						placeholder="请输入手机号" required autofocus name="phone"
						value="${address.phone }" /></td>
				</tr>
				<tr>
					<td>是否设为默认地址：</td>
					<td><input type="radio" name="status" value="0" />是<input
						type="radio" name="status" value="1" checked />否</td>
				</tr>
				<tr>
					<td></td>
					<td><input type="submit" value="保存修改" id="btn2" /></td>
				</tr>
			</table>
		</form>
	</div>
	<script src="<%=request.getContextPath()%>/js/jquery.js"></script>
	<script src="<%=request.getContextPath()%>/js/bootstrap.js"></script>
	<script src="<%=request.getContextPath()%>/js/city-picker.data.js"></script>
	<script src="<%=request.getContextPath()%>/js/city-picker.js"></script>
	<script src="<%=request.getContextPath()%>/js/main.js"></script>
</body>

</html>